import service from '@/request/index.js'

export const fetchHotNews = () => {
  return service.get('/news/hot')
}

export const fetchNewsDetail = (id) => {
  return service.get(`/news/${id}`)
}

export const fetchNews = (page = 1) => {
  return service.get(`/news?page=${page}`)
}
